package com.tanhua.dubbo.api;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tanhua.dubbo.mappers.AnnouncementMapper;
import com.tanhua.model.domain.Announcement;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author ck
 * @date 2021/11/16 22:03
 */

@DubboService
public class AnnouncementApiImpl implements AnnouncementApi{

    @Autowired
    private AnnouncementMapper announcementMapper;

    @Override
    public List<Announcement> findAnnouncementList() {
        QueryWrapper<Announcement> queryWrapper = new QueryWrapper<>();
        List<Announcement> list = announcementMapper.selectList(queryWrapper);
        return list;
    }
}
